package day16_Runnable.demo08;

public class MyRunable1 implements Runnable{
    MyRunable mr;

    public MyRunable1(){}

    public MyRunable1(MyRunable mr) {

        this.mr = mr;
    }

    @Override
    public void run() {

        for (int i = 1; i <=100 ; i++) {
            System.out.println(Thread.currentThread().getName()+"----"+i);
        }
        mr.stop();
    }
}
